#ifndef _MAPTAB_
#define _MAPTAB_

#include "Graphics/Graphics.hpp"
#include "EditorInstance.hpp"

/**
* A tab that allows switching between open maps in the Editor.
*/
class MapTab:public Panel{
private:
	/** Name of the map for this MapTab. */
    Label name;
    sf::RectangleShape background;

public:
	/** EditorInstance associated with this MapTab. */
    EditorInstance* instance;
    IconButton* closeButton;

    MapTab(EditorInstance* inst);
    void updateName();
    virtual InterfaceElement* collisionCheck(int x, int y);
};

#endif